package com.sitanyun.merchant.guide.frament;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.sitanyun.merchant.guide.R;
import com.sitanyun.merchant.guide.base.BaseFragment;
import com.sitanyun.merchant.guide.base.ToastUtil;
import com.sitanyun.merchant.guide.view.activity.SceneActivity;

import androidx.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.OnClick;

/**
 * A simple {@link Fragment} subclass.
 */
public class HomeFragment extends BaseFragment {


    @BindView(R.id.tv_title_str)
    TextView tvTitleStr;
    @BindView(R.id.imgone)
    ImageView imgone;
    @BindView(R.id.tv_return)
    ImageView tvReturn;
    @BindView(R.id.image_right_key)
    ImageView imageRightKey;
    @BindView(R.id.tv_right_key)
    TextView tvRightKey;
    @BindView(R.id.ff_main_layout)
    FrameLayout ffMainLayout;
    @BindView(R.id.live)
    ImageView live;


    @Override
    public int getLayoutId() {
        return R.layout.fragment_home;
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        tvReturn.setVisibility(View.GONE);
        tvTitleStr.setText("业务");
    }

    @Override
    public void initView() {

    }


    @OnClick({R.id.imgone, R.id.live})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.imgone:
                startActivity(new Intent(getContext(), SceneActivity.class));
                break;
            case R.id.live:
                ToastUtil.showToast(getActivity(),"正在开发中。。。");
                break;
        }
    }
}
